package com.lili.collection.core.record.impl;

import com.lili.collection.core.enums.MarkState;
import com.lili.collection.core.fields.Field;
import com.lili.collection.core.record.Record;
import lombok.Getter;
import lombok.Setter;

/**
 * 公共记录信息实现
 *
 * @author lili
 * @date 2023/3/10 0:24
 */
public class CommonRecord implements Record {

    @Getter
    @Setter
    private MarkState markState;

    @Getter
    @Setter
    private Field field;

    public CommonRecord() {
        this.markState = MarkState.INSERT;
    }

    public CommonRecord(Field field) {
        this();
        this.field = field;
    }

    public CommonRecord(Field field, MarkState markState) {
        this(field);
        this.markState = markState;
    }
}
